package com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式;

import com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式.factory.RectangleFactory;
import com.example.design.shejimoshi.createMode.factoryMode.基于泛型的工厂模式.factory.ShapeFactory;

/**
 * @Description
 * @Author liuzhihui
 * @Date 2024/5/22
 */
public class Test {

    public static void main(String[] args) {
        ShapeFactory shapeFactory = new RectangleFactory();
        Shape shape= shapeFactory.getShape("a");
        shape.draw();
    }
}
